Skip to content

Conversation

@r-recchia
Copy link
Contributor

@r-recchia r-recchia commented Oct 30, 2025

Summary

Testing

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces named pipe communication for the OTA provider application, enabling external control, and adds a new Python test (TC_SU_2_8.py) for multi-fabric OTA scenarios. The changes span C++ and Python, modifying the OTA provider, adding new test infrastructure, and implementing the test case. My review has identified several issues, including a bug in the pipe cleanup logic, an unused variable in the C++ command handler, and incorrect API usage in the new Python test and its helper functions. Additionally, there is some commented-out code that should be removed for clarity. The comments regarding create_acl_entry in apps.py and apps.pyi have been removed as they refer to a type hint file update, which is outside the scope of code changes.

@mergify mergify bot removed the conflict label Nov 6, 2025
@github-actions
Copy link

github-actions bot commented Nov 6, 2025

PR #41708: Size comparison from 1089161 to 1297b97

Full report (5 builds for cc32xx, realtek, stm32)
platform target config section 1089161 1297b97 change % change
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 554906 554906 0 0.0
RAM 205776 205776 0 0.0
lock CC3235SF_LAUNCHXL FLASH 587786 587786 0 0.0
RAM 205872 205872 0 0.0
realtek light-switch-app rtl8777g FLASH 706952 706952 0 0.0
RAM 106964 106964 0 0.0
lighting-app rtl8777g FLASH 757896 757896 0 0.0
RAM 127296 127296 0 0.0
stm32 light STM32WB5MM-DK FLASH 470224 470224 0 0.0
RAM 141352 141352 0 0.0

@github-actions
Copy link

github-actions bot commented Nov 7, 2025

PR #41708: Size comparison from 1089161 to 3885c24

Full report (3 builds for realtek, stm32)
platform target config section 1089161 3885c24 change % change
realtek light-switch-app rtl8777g FLASH 706952 706960 8 0.0
RAM 106964 106964 0 0.0
lighting-app rtl8777g FLASH 757896 757904 8 0.0
RAM 127296 127296 0 0.0
stm32 light STM32WB5MM-DK FLASH 470224 470232 8 0.0
RAM 141352 141352 0 0.0

@github-actions
Copy link

github-actions bot commented Nov 7, 2025

PR #41708: Size comparison from 1089161 to 0f891fe

Full report (32 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
platform target config section 1089161 0f891fe4 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1106340 1106354 14 0.0
RAM 178930 178930 0 0.0
bl702 lighting-app bl702+eth FLASH 661414 661428 14 0.0
RAM 135025 135025 0 0.0
bl702+wifi FLASH 837008 837022 14 0.0
RAM 124445 124445 0 0.0
bl706+mfd+rpc+littlefs FLASH 1070610 1070624 14 0.0
RAM 117317 117317 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 900042 900056 14 0.0
RAM 105612 105612 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 983356 983370 14 0.0
RAM 109796 109796 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 770820 770820 0 0.0
RAM 103360 103360 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 782664 782672 8 0.0
RAM 108528 108528 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 728612 728612 0 0.0
RAM 97420 97420 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 713080 713080 0 0.0
RAM 97636 97636 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 554906 554930 24 0.0
RAM 205776 205776 0 0.0
lock CC3235SF_LAUNCHXL FLASH 587786 587794 8 0.0
RAM 205872 205872 0 0.0
esp32 all-clusters-app c3devkit DRAM 102572 102572 0 0.0
FLASH 1836720 1836848 128 0.0
IRAM 93540 93540 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 933452 933456 4 0.0
RAM 161377 161377 0 0.0
nxp contact mcxw71+release FLASH 692504 692512 8 0.0
RAM 61552 61552 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1678092 1678092 0 0.0
RAM 213956 213956 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1594492 1594492 0 0.0
RAM 211156 211156 0 0.0
light cy8ckit_062s2_43012 FLASH 1460732 1460732 0 0.0
RAM 197776 197776 0 0.0
lock cy8ckit_062s2_43012 FLASH 1493420 1493420 0 0.0
RAM 225496 225496 0 0.0
qpg lighting-app qpg6200+debug FLASH 837768 837768 0 0.0
RAM 127768 127768 0 0.0
lock-app qpg6200+debug FLASH 774580 774596 16 0.0
RAM 118736 118736 0 0.0
realtek light-switch-app rtl8777g FLASH 706952 706960 8 0.0
RAM 106964 106964 0 0.0
lighting-app rtl8777g FLASH 757896 757904 8 0.0
RAM 127296 127296 0 0.0
stm32 light STM32WB5MM-DK FLASH 470224 470232 8 0.0
RAM 141352 141352 0 0.0
telink bridge-app tl7218x FLASH 710608 710622 14 0.0
RAM 90600 90600 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 797084 797098 14 0.0
RAM 41024 41024 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 788286 788300 14 0.0
RAM 93700 93700 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 715286 715300 14 0.0
RAM 51892 51892 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 748582 748596 14 0.0
RAM 70932 70932 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 725436 725450 14 0.0
RAM 34624 34624 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 602672 602686 14 0.0
RAM 108928 108928 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 820918 820936 18 0.0
RAM 92096 92096 0 0.0

@r-recchia
Copy link
Contributor Author

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds support for controlling and querying the OTA Provider example application via named pipes, which is useful for automated testing. It introduces a bidirectional communication channel to send commands (like QueryImageSnapshot) and receive responses. The changes span the OTA provider example app, the Linux platform layer for named pipes, and new Python test infrastructure.
My review found a couple of issues: a critical bug in OTAProviderExample where a member variable is reused incorrectly, and a bug in the cleanup logic for named pipes. Overall, the changes are a good step towards better testability of the OTA provider.

@github-actions
Copy link

github-actions bot commented Nov 7, 2025

PR #41708: Size comparison from 1089161 to a424ffa

Full report (5 builds for cc32xx, realtek, stm32)
platform target config section 1089161 a424ffa change % change
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 554906 554922 16 0.0
RAM 205776 205776 0 0.0
lock CC3235SF_LAUNCHXL FLASH 587786 587802 16 0.0
RAM 205872 205872 0 0.0
realtek light-switch-app rtl8777g FLASH 706952 706960 8 0.0
RAM 106964 106964 0 0.0
lighting-app rtl8777g FLASH 757896 757912 16 0.0
RAM 127296 127296 0 0.0
stm32 light STM32WB5MM-DK FLASH 470224 470232 8 0.0
RAM 141352 141352 0 0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant